package com.eoner.commonbean.product;

import android.os.Parcel;
import android.os.Parcelable;

public class ShProductTag implements Parcelable {
    private String sh_type,sh_name;

    private ShProductTag(Parcel in) {
        sh_type = in.readString();
        sh_name = in.readString();
    }

    public static final Creator<ShProductTag> CREATOR = new Creator<ShProductTag>() {
        @Override
        public ShProductTag createFromParcel(Parcel in) {
            return new ShProductTag(in);
        }

        @Override
        public ShProductTag[] newArray(int size) {
            return new ShProductTag[size];
        }
    };

    public String getType() {
        return sh_type;
    }

    public void setType(String type) {
        this.sh_type = type;
    }

    public String getName() {
        return sh_name;
    }

    public void setName(String name) {
        this.sh_name = name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(sh_type);
        dest.writeString(sh_name);
    }
}
